<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	<title>我的团队</title>
	<!-- 引入Mui -->
    <link rel="stylesheet" href="css/mui.min.css">
    <link rel="stylesheet" href="css/pic_look.css">
	<!-- 引入公共样式 -->
    <link rel="stylesheet" href="css/public.css">
    <style>
        #top_tab li{
            line-height: 3;
            color: #333;
        }
        #top_tab .mui-active{
            color: #007aff;
        }
        #slider h4{
            font-size: 14px;
        }
        #slider p{
            font-size: 12px;
        }
        .numm ul li{
            background: #fff;
            text-align: center;
        }
        .numm ul li:after{
            background-color:#fff;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
	<header id="header" class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">我的团队</h1>
    </header>
    <!-- 头部 结束 -->
    <div class="mui-content">
        <div class="numm">
            <ul class="mui-table-view mui-row">
                <li class="mui-table-view-cell mui-col-sm-6 mui-col-xs-6"><p>团队人数 <span class="mui-badge mui-badge-warning mui-badge-inverted">20</span>人</p></li>
                <li class="mui-table-view-cell mui-col-sm-6 mui-col-xs-6"><p>推广佣金 <span class="mui-badge mui-badge-danger mui-badge-inverted">330.00</span>元</p></li>
            </ul>
        </div>
        <div class="mui-slider" id="slider">
            <div class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted" id="top_tab">
                <li class="mui-control-items mui-col-xs-6 mui-inline mui-active">一级用户</li>
                <li class="mui-control-items mui-col-xs-6 mui-inline">二级用户</li>
            </div>
            <div class="mui-slider-progress-bar mui-col-xs-6"></div> <!--选项卡滑动条-->
            <div class="mui-slider-group" id='tab_content'>
                <div class="mui-slider-item mui-control-content mui-active">
                    <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
                        <li class="mui-table-view-cell">
                            <div class="mui-table">
                                <div class="mui-table-cell mui-col-xs-10">
                                    <h5>会员ID: 4396 </h5>
                                    <h5>手机号码:13133334444</h5>
                                    <p class="time">用户等级:<span class="mui-badge mui-badge-danger mui-badge-inverted">会员</span></p>
                                </div>
                            </div>
                        </li>
                        <li class="mui-table-view-cell">
                            <div class="mui-table">
                                <div class="mui-table-cell mui-col-xs-10">
                                    <h5>会员ID: 4396 </h5>
                                    <h5>手机号码:13133334444</h5>
                                    <p class="time">用户等级:<span class="mui-badge mui-badge-danger mui-badge-inverted">会员</span></p>
                                </div>
                            </div>
                        </li>
                        <li class="mui-table-view-cell">
                            <div class="mui-table">
                                <div class="mui-table-cell mui-col-xs-10">
                                    <h5>会员ID: 4396 </h5>
                                    <h5>手机号码:13133334444</h5>
                                    <p class="time">用户等级:<span class="mui-badge mui-badge-danger mui-badge-inverted">会员</span></p>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="mui-slider-item mui-control-content">
                    <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
                        <li class="mui-table-view-cell">
                            <div class="mui-table">
                                <div class="mui-table-cell mui-col-xs-10">
                                    <h5>会员ID: 4396 </h5>
                                    <h5>手机号码:13133334444</h5>
                                    <p class="time">用户等级:<span class="mui-badge mui-badge-danger mui-badge-inverted">会员</span></p>
                                </div>
                            </div>
                        </li>
                        <li class="mui-table-view-cell">
                            <div class="mui-table">
                                <div class="mui-table-cell mui-col-xs-10">
                                    <h5>会员ID: 4396 </h5>
                                    <h5>手机号码:13133334444</h5>
                                    <p class="time">用户等级:<span class="mui-badge mui-badge-danger mui-badge-inverted">会员</span></p>
                                </div>
                            </div>
                        </li>
                        <li class="mui-table-view-cell">
                            <div class="mui-table">
                                <div class="mui-table-cell mui-col-xs-10">
                                    <h5>会员ID: 4396 </h5>
                                    <h5>手机号码:13133334444</h5>
                                    <p class="time">用户等级:<span class="mui-badge mui-badge-danger mui-badge-inverted">会员</span></p>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <script src="js/jquery.min.js"></script> 
	<script src="js/mui.min.js"></script> 
    <script src="js/doT.js"></script>
    <!-- 以上为引入第三方插件 -->
    <script>
        //初始化 mui 顶部 tab 效果
		mui('#slider').slider({
			interval:0 // slider间隔时间
		});
        //实现鼠标点击切换效果
        $('#top_tab li').click(function(){
            var gallery = mui('#slider');
            $('#top_tab li').removeClass('mui-active')
            $(this).addClass('mui-active')
            gallery.slider().gotoItem($(this).index())
        });
        // 动态添加 top_tab 的 active
        document.querySelector('#slider').addEventListener('slide', function(event) {
            var index = event.detail.slideNumber;
            $('#top_tab li').removeClass('mui-active');
            $('#top_tab li').eq(index).addClass('mui-active')
        });
    </script>
    </script>
</body>
</html>